package com.hnust.service;


import com.hnust.domain.record.*;

import java.util.List;
import java.util.Map;

public interface ExerciseService {
    List<CollegeRecord> getCollege();//获取所有学院
    List<CourseRecord> getCourse(String collegeId);//获取学院所有课程
    List<ChapterRecord> getChapter(String courseId,Integer level);//获取章节信息
    List<QuestionTypeRecord> getQuestionType();//获取题目类型
    List<NewQuestionRecordRecord> getQuestion(List<ExerciseQuestInfoRecord> typeInfoList, List<String> chapterIdList, Integer level);//获取试卷
    String addRecord (List<String> questionIdList,String createTime,String studentId,String queRecType,String token,Boolean right);//添加答题记录
    Map<String,Object> getRanking(String colId, String majorId, String classId, Integer type, String studentId, Integer offset, Integer limit);
    List<NewQuestionRecordRecord> getQuestionsByCourseIdAndPage(String courseId,int page, String chapterId);//根据课程id和页号获取题目
    List<ChapterTreeItemRecord> getChapterTree(String courseId) throws Exception;//根据课程id获取树形结构的章节列表
}
